package com.design.behavior.command.cainiao;

/**
 * @ProjectName: design
 * @Package: com.design.behavior.command.cainiao
 * @ClassName: BuyStock
 * @Author: shenaiguo
 * @Description: 创建实现了 Order 接口的实体类。
 * @Date: 2020/10/1 0001 10:54
 */

// 步骤3
public class BuyStock implements Order {
    private Stock abcStock;

    public BuyStock(Stock abcStock){
        this.abcStock = abcStock;
    }

    public void execute() {
        abcStock.buy();
    }
}
